# 定义一个列表 list
hobbies = ['编程','健身','电影','吃饭']
# print(hobbies)
# print(type(hobbies))

# hobbies.append('睡觉')

# hobbies.remove('健身')

# print(hobbies)


# 定义一个元组 tuple
names = ('张三','李四','王五','赵六','钱七','孙八')
print(names)
print(type(names))

# names.append('杨九')

print(names[2])
print(names[2:4]) # 获取索引为[2,4)之间的元素